var http = require("http");

var server = http.createServer(function(req, res) {

    res.write('<head><meta charset="utf-8"/></head>');
    res.end("<h1>显示中文！<h1>");
});

server.listen(1024, function() {

    console.log("服务已经启动成功，请在http://127.0.0.1:1024打开");
});